<?php
/**
 * @Author: Xu Liu email:2867557054@qq.com
 * @Date:   2016-12-15 13:31:33
 * @Last Modified by:   Xu Liu
 * @Last Modified time: 2018-04-26 18:09:49
 */
if (!defined('IN_DISCUZ')) {
    exit('Access Denied2');
}
require_once './source/plugin/jameson_read/function/function_jameson.php';
$class   = isset($_GET['contrl']) && !empty($_GET['contrl']) ? strtolower($_GET['contrl']) : 'index';
$_GET['act'] = $method = isset($_GET['act']) && !empty($_GET['act']) ? strtolower($_GET['act']) : 'index';
if($method=='m'){
	$_GET['act'] = $method = 'index';
	$class = 'touch';
}
$_GET['contrl'] = $class;
$class   = ucfirst($class) . 'Contrl';
if (preg_match("/^\w+$/i", $class) && file_exists('./source/plugin/jameson_read/class/' . $class . '.class.php')) {
    require_once './source/plugin/jameson_read/class/BaseXf.php';
    require_once './source/plugin/jameson_read/class/' . $class . '.class.php';
    init_jameson();
    $obj = new $class();
    $obj->$method();
} else {
    exit('This is a Error.');
}